<div id="leftsidebar" class="clearfix">

<div id="leftNav">
<?php 
if (count($crumbs)>=2){
?>
	
	
	<?php 
	if(isset($categorySub) && $categorySub) {
	foreach($categorySub as $cateSub1) {
	if ($crumbs[1]['CAT_ID'] != $cateSub1['CAT_ID']) {
			continue;
		}
	if ($cateSub1['SUB_DATA']) {
	
	?>
	<ul class="clearfix leftnavigation active subnavigation" id="activeleftNav">
	<li><a href="/data+file/index.aspx" class="first">
		<span><?php echo  $cateSub1['CAT_NAME'];?></span>
	</a></li>
	<?php
	foreach($cateSub1['SUB_DATA'] as $cateSub2){
	?>
		<li <?php  echo ($category->CAT_ID == $cateSub2['CAT_ID']) ? 'class="current"': '';?>>
			<a href="<?php echo cate_url((object)$cateSub2);?>">
				<span><?php echo $cateSub2['CAT_NAME'];?></span>
			</a>
		</li> 
	<?php }
	echo '</ul>';
	}
	}
	}
	?>
<?php 
}
?>	
					
					
					
					
    <ul id="leftnavigation" class="leftnavigation right">
        <li>
            <a class="first">Danh mục </a>
        </li>
		<?php
		if(isset($categorySub) && $categorySub) {
		foreach($categorySub as $cateSub1) {
		?>
            <li>
                <a href="<?php echo cate_url((object)$cateSub1);?>" class="<?php echo (count($cateSub1['SUB_DATA']) >0)?'dc-mega':'';?>">
                    <span><?php echo $cateSub1['CAT_NAME'];?></span>
					<?php if(count($cateSub1['SUB_DATA']) >0){
					?>
						<span class="dc-mega-icon"></span>
					<?php }?>
                </a>
				<?php if(count($cateSub1['SUB_DATA']) >0){
					?>
				<div class="sub-container non-mega" style=" z-index: 1000;display: none;"><ul class="clearfix sub">
				<?php foreach($cateSub1['SUB_DATA'] as $cateSub2){?>
                            <li>
                                <a href="<?php echo cate_url((object)$cateSub2);?>">
                                    <span><?php echo $cateSub2['CAT_NAME'];?></span>
                                </a>
                            </li> 
						<?php }?>
                    </ul></div>
					<?php }?>
            </li>
			<?php }
			}?>
           
           
    </ul>
</div>
<div id="adlefttop" class="">
	<?php echo $this->mads->ads("left", @$position); ?>
</div>


<?php /*
<div class="noneBox box--fb box--fb" id="filterbox">
    <div class="bh">
        Lọc kết quả
    </div>
    <div class="bc">
        <strong>Sử dụng</strong>
        <div class="spotlightLinks">
            <div class="free">
                <a rel="nofollow" href="http://www.download.com.vn/timkiem?soft=free&platformId=windows">Miễn phí</a>
            </div>
            <div class="trial">
                <a rel="nofollow" href="http://www.download.com.vn/timkiem?license=Trial&platformId=windows">Dùng thử</a>
            </div>
            
            <div class="remove">
                <a id="hRemoveLicenseModel" href="http://www.download.com.vn/timkiem?platformid=windows">Tất cả</a>
            </div>
        </div>
    </div>
</div>
 */?>
    </div>